package presentacion;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class RenderColorines2 extends DefaultTableCellRenderer{
	
	   public Component getTableCellRendererComponent(JTable table,
	      Object value,
	      boolean isSelected,
	      boolean hasFocus,
	      int row,
	      int column)
	   {
	      super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
	      

	     /*
	      if (value!=null){
		      if (value.toString()=="SI"){
			         this.setBackground(Color.GREEN);
			      }else if (value.toString()=="NO"){
			    	  this.setBackground(Color.YELLOW);
			      }
	      }else{
	    	  this.setBackground(Color.WHITE);
	      }
		   */

		      return this;
	     
		   
	   }
	
}
